package com.burstly.lib.util.calendar;

import com.burstly.jackson.JsonParser;
import com.burstly.jackson.JsonProcessingException;
import com.burstly.jackson.map.DeserializationContext;
import com.burstly.jackson.map.JsonDeserializer;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;

class Rfc3339ToRfc2445DateDeserializer extends JsonDeserializer<String>
{
  private static final SimpleDateFormat RFC2445_FORMAT = new SimpleDateFormat("yyyyMMdd'T'HHmmss");

  public String deserialize(JsonParser paramJsonParser, DeserializationContext paramDeserializationContext)
    throws IOException, JsonProcessingException
  {
    Date localDate = Rfc3339Parser.parseDateString(paramJsonParser.getText());
    if (localDate != null)
      return RFC2445_FORMAT.format(localDate);
    return null;
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.burstly.lib.util.calendar.Rfc3339ToRfc2445DateDeserializer
 * JD-Core Version:    0.6.2
 */